package org.ielse.frame.t.tz.parallax;

import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class ParallaxAdapter extends FragmentPagerAdapter {
	private List<ParallaxFragment> fragments;

	public ParallaxAdapter(FragmentManager fm, List<ParallaxFragment> fragments) {
		super(fm);
		this.fragments = fragments;
	}

	@Override public Fragment getItem(int position) {
		return fragments.get(position);
	}

	@Override public int getCount() {
		return fragments.size();
	}

}
